package com.sixks.app.mvc.cmd;

/**
 * @author colin
 * @date: 02/03/2014
 * @time: 11:58
 */
public class UploadPicRequest extends APIRequest {

    private String urlOfImage;
    private String imageName;

    public UploadPicRequest(String urlOfImage) {
        super();
        this.urlOfImage = urlOfImage;
        int idx = urlOfImage.lastIndexOf("/");
        imageName = urlOfImage.substring(idx+1);
    }

    public String getUrlOfImage() {
        return urlOfImage;
    }

    public void setUrlOfImage(String urlOfImage) {
        this.urlOfImage = urlOfImage;
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }
}
